function [queryhist, queryvhist]=stdvqe_query(query,cdbk)
numofcdwd=size(cdbk,1);
cdwdlen=size(cdbk,2);
query=truncwidth(cdwdlen,query);

rowofquery=size(query,1);

queryhist=[];
queryrec=[];
for i=1:rowofquery
    [dist,leastdist, c]=closestwith(query(i,:),cdbk);
    
    queryhist=[queryhist c];
    queryrec=[queryrec cdbk(c,:)];
end

queryvhist=zeros(1,numofcdwd);
for i=1:length(queryhist)
    queryvhist(queryhist(i))=queryvhist(queryhist(i))+1;

end